//
//  all_Controller.m
//  pmmSS
//
//  Created by Mac book on 2017/9/19.
//  Copyright © 2017年 WTFSSD. All rights reserved.
//

#import "all_Controller.h"
#import "Order_class_cell.h"


@interface all_Controller ()<Order_footerView_button_tagDelegate>

@end

@implementation all_Controller

- (void)viewDidLoad {
    [super viewDidLoad];

    [self setTableView:self.tableView];
    // Do any additional setup after loading the view.
}

-(void)setTableView:(UITableView *)tableView{


    tableView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);

    tableView.rowHeight = autoScaleH(214.5) ;

    [tableView registerClass:[Order_class_cell class] forCellReuseIdentifier:@"Order_class_cell"];

}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{

    return  4 ;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return 1;


}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    static NSString *cellId = @"Order_class_cell";

    Order_class_cell * cell  = [tableView dequeueReusableCellWithIdentifier:cellId ];

    cell.selectionStyle = UITableViewCellSelectionStyleNone;

    cell.delegate = self;


    return cell;



}

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{


    return autoScaleH(10);
}
-(void)passButtonTag:(NSInteger)buttonTag{

    NSLog(@" tag === %ld",buttonTag);

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
